package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
//    发布动态
    public void publish(Movement movement);
//    查询好友动态
    List<Movement> findFriendMovements(Integer page, Integer pagesize, Long userId);
//    根据pid数组查询动态
    List<Movement> findMovementsByPids(List<Long> pids);
//    随机获取多条动态数据
    List<Movement> randomMovements(Integer counts);
    //根据id查询
    Movement findById(String movementId);

    PageResult findByUserId(Long uid, Integer state, Integer page, Integer pagesize);
}
